#include "stdafx.h"

#include <iostream>

using namespace std;

BOOL APIENTRY DllMain(_In_ HANDLE _HDllHandle, _In_ DWORD _Reason, _In_opt_ LPVOID _Reserved)
{
	switch (_Reason)
	{
	case DLL_PROCESS_ATTACH:
		cout<<"DLL_PROCESS_ATTACH"<<endl;
		break;
	case DLL_PROCESS_DETACH:
		cout<<"DLL_PROCESS_DETACH"<<endl;
		break;
	case DLL_THREAD_ATTACH:
		cout<<"DLL_THREAD_ATTACH"<<endl;
		break;
	case DLL_THREAD_DETACH:
		cout<<"DLL_THREAD_DETACH"<<endl;
		break;
	}
	return true;
}